package cn.t.persistence.mapper.user;

import cn.t.persistence.entity.user.RoleSkuPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;

/**
 * @author l
 */
public interface RoleSkuMapper extends BaseMapper<RoleSkuPO> {

    @Delete("delete from t_role_sku where role_id = #{roleId}")
    boolean removeByRoleId(Long roleId);

    @Delete("delete from t_role_sku where id = #{id}")
    boolean removeById(Long id);
}
